package com.guguskins.back.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guguskins.back.entity.GuGoods;
import com.guguskins.back.entity.bo.ContractGoodsBo;
import com.guguskins.back.entity.vo.PageVo;

import java.util.List;

/**
 * <p>
 * 饰品表 服务类
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-05-14
 */
public interface GuGoodsService extends IService<GuGoods> {

    List<GuGoods> getGoodsList(long boxId);

    List<GuGoods> getGoodsListByRollId(long rollId, int state);

    List<GuGoods> getGoodsListByRollId(long rollId, String searchKey);

    List<GuGoods> calculationRate(List<GuGoods> goodsList);

    List<GuGoods> format(List<GuGoods> goodsList);

    PageVo<GuGoods> backPage(int p, int size, String searchKey);

    boolean changePrice(GuGoods goods);

    PageVo<GuGoods> backContractGoodsPage(int p, int size, String searchKey);

    boolean backContractAdd(ContractGoodsBo contractGoodsBo);

    boolean backContractChangeState(GuGoods goods);
}
